package day0212;

public class Test5 {
    public static void main(String[] args) {
        double sum=0;
        for (double i = 1; i <= 4; i++) {
            double num=i /(i+1);
            sum= sum + num;
        }
        System.out.println(sum);
    }
}